package pw.goyd.game.logic;

import pw.goyd.protocol.core.Serializer;
import pw.goyd.subscribe.PlayerCustomer;

/**
 * 玩家进入房间
 *
 * @author StanWind
 */
public class AddPlayerRoomResponse extends Serializer {
    private PlayerCustomer player;

    public PlayerCustomer getPlayer() {
        return player;
    }

    public void setPlayer(PlayerCustomer player) {
        this.player = player;
    }

    @Override
    protected void read() {

    }

    @Override
    protected void write() {
        writeString(player.getAccount_id());
        writeString(player.getIcon_source());
        writeString(player.getNickname());
        writeInt(player.getGold());
    }


}
